package com.cxh.mchat.user.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cxh.mchat.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author cxh
 * @since 2021-12-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_user")
public class User extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户账号
     */
    private String userNo;

    /**
     * 邮箱地址
     */
    private String email;

    /**
     * 密码
     */
    @JSONField(serialize = false)
    private String pwd;

    /**
     * 盐
     */
    @JSONField(serialize = false)
    private String salt;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 昵称拼音
     */
    private String nickNamePinyin;

    /**
     * 性别
     */
    private String gender;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 生日
     */
    private LocalDate birthday;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 个人签名
     */
    private String userMotto;

    /**
     * 电话
     */
    private String mobile;

    /**
     * 个人主页
     */
    private String website;
}
